package com.feiyu.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springblade.core.tool.api.IResultCode;
import javax.servlet.http.HttpServletResponse;

/**
 * @author tang ming
 * @since 2021/12/6 17:50
 */
@Getter
@AllArgsConstructor
public enum ResultCode implements IResultCode {
    FILE_DOWN_ERROR(HttpServletResponse.SC_BAD_REQUEST,"文件下载错误"),
    USER_EXIST(HttpServletResponse.SC_BAD_REQUEST,"用户名存在"),
    EMAIL_EXIST(HttpServletResponse.SC_BAD_REQUEST,"邮箱已被注册"),
    FILE_NOT_FOUND(HttpServletResponse.SC_BAD_REQUEST,"文件不存在"),
    CODE_ERROR(HttpServletResponse.SC_BAD_REQUEST,"验证码错误"),
    FILE_UPLOAD_ERROR(HttpServletResponse.SC_BAD_REQUEST,"文件上传错误");
    private int code;
    private String message;
}
